# print(1+2+3)
# print(1+2-3)
# print(1+2*3)
# print(1+2/3)
# print(2**2)
# a=10
# print(a)
# a=20
# print(a)
# a=10
# b=20
# a=b
# print(a)
# print(b)
# a=10
# print(type(a))
# a='hello'
# print(type(a))
# print(len(a))
# b='world'
# print(a+b)
# a=10
# print(type(a))
# a='hello'
# print(type(a))
# print('hello')
# b=True
# print(b)
# num=10
# print(f'num={num}')
# num=input("请输入一个整数：")
# print(f'num={num}')
# a=input("请输入第一个整数：")
# b=input("请输入第二个整数：")
# a=int(a)
# b=int(b)
# print(f'a+b={a+b}')
# print(4**2)
# print(4**0.5)
#print(7/2)
# print(-7/2)
# print(7//2)#向下取整
# print(-7//2)
# print(0.1+0.2==0.3)
# print("********************")
# print(0.1)
# print(0.2)
# print(0.3)
# print(0.1+0.2)
#print(-0.000001<(0.1+0.2-0.3)<0.000001)
# a=10
# b=20
# c=30
# print(a<b and b<c)
# print(a>b or a>c)
# print(not a)
#a=b=10
# a,b=10,20
# a,b=b,a
# print(a,b)
# a = 10
# a = a + 1
# print(a)
# b = 10
# b += 1
# print(b)
# choice=int(input("请输入数字：输入1：表示你要认真学习；输入2：表示你你旋转躺平摆烂："))
# if choice==1:
#     print("你毕业能找到好工作")
# elif choice==2:
#     print("你毕业即失业")
# else:
#     print("你选择错误")
#输入一个整数判断是否是奇数
# num=int(input("请输入一个整数："))
# if num%2==0:
#     print(f"{num}不是奇数")
# else:
#     print(f'{num}是奇数')
# year=int(input("请输入数字："))
# if (year%4==0 and year%100!=0)or (year%400==0):
#     print('是闰年')
# else:
#     print("不是闰年")
# a=int(input("请输入一个数字："))
# if a!=1:
#     pass
# else:
#     print('hello')
#打印 1-10 的整数
# num=0
# while num<=10:
#     print(num)
#     num+=1
#计算 1-100 的和
# i=1
# count=0
# while i<=100:
#     count+=i
#     i+=1
# print(count)
#计算 5 的阶乘
# num=1
# ret=1
# while num<=5:
#     ret*=num
#     num+=1
# print(ret)
#求 1! + 2! + 3! + 4! + 5!
# i=1
# sum=0
# while i<=5:
#     ret=1
#     j=1
#     while j<=i:
#         ret*=j
#         j+=1
#     sum+=ret
#     i+=1
# print(sum)
#打印1-10
# for i in range(1,11):
#     print(i)
#打印2，4，6，8，10
# for i in range(2,11,2):
#     print(i)
#求 1 - 100 的和
# theSum=0
# for i in range(1,101):
#     theSum+=i
# print(theSum)
# def calSum(beg,end):
#     theSum=0
#     for i in range(beg,end+1):
#         theSum+=i
#     return theSum
# #print(calSum(1,100))
# result=calSum(1,100)
# print(result)
# def getPoint():
#     x=10
#     y=20
#     return x,y
# x,y=getPoint()
# print(x)
# print(y)
# _,b=getPoint()
# x=20
# def test():
#     x=10
#     print(f'函数内部的x={x}')
# test()
# print(x)
# x=20
# def test():
#     global x
#     x=10
#     print(x)
# test()
# print(x)
# for i in range(1,11):
#     print(i)
# print(i)
# def factor(n):
#     if n==1:
#         return 1
#     else:
#         return n*factor(n-1)
# print(factor(5))
# def test(x,y):
#     print(f'x={x}')
#     print(f'y={y}')
# test(1,2)
# test(x=10,y=20)
# test(y=100,x=200)
# a=[]
# b=list()
# print(type(a))
# print(type(b))
# a=[1,2,3,4]
# print(a)
# a=[1,'hello',True]
# print(a)
# a=[1,2,3,4]
# a[1]=100
# print(a[1])
# print(len(a))
# print(a[-2])
# alist = [1, 2, 3, 4]
# print(alist[100:200])
# a=[1,2,3,4]
# # for i in a:
# #     print(i)
# # for i in range(0,len(a)):
# #     print(a[i])
# # a.append('hello')
# a.insert(1,'hello')
# print(a)
# a=[1,2,3,4]
# print(2 in a)
# print(10 in a)
# print(a.index(2))
# print(a.index(10))
# a=[1,2,3,4]
# #a.pop()
# #a.pop(1) #靠下标来删除元素
# a.remove(2) #靠值来删除元素
# print(a)
# a=[1,2,3,4]
# b=[5,6,7]
# # print(a+b)
# # print(a)
# # print(b)
# a.extend(b)
# print(a)
# print(b)
# a=()
# b=tuple()
# print(type(a))
# print(type(b))
# a={}
# b=dict()
# print(type(a))
# print(type(b))
# student={
#     'id':123,
#     'name':'zhangsan',
#     'sorce':90
# }
# for key in student:
#     print(key,student[key])
# print(student.keys())
# print(student.values())
# print(student.items())
# print(student)
#f=open('d:/python作业','r')
# import datetime
# date1 = datetime.datetime(2012, 2, 14)
# date2 = datetime.datetime(2022, 7, 12)
# print(date2 - date1)
def reverseWord(words):
    stones=words.split()
    stones.reverse()
    return ' '.join(stones)
print(reverseWord("i am a student"))